package com.tentact.servlets;

import com.tentact.service.MeetingService;
import com.tentact.vo.Meeting;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "UpdateServlet", value = "/UpdateServlet")
public class UpdateServlet extends HttpServlet {
    MeetingService service = new MeetingService();
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        String meetingname = request.getParameter("meetingname");

       service.updateByMeetings(meetingname);
        response.sendRedirect("SelectByNameMeetingServlet");

    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
